const path = require('path');
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require("./webpack.config.js");

config.entry.unshift("webpack-dev-server/client?http://localhost:9999/");

const compiler = webpack(config);
const server = new WebpackDevServer(compiler);

server.listen(9999, "127.0.0.1", function() {
    console.log("Starting server on http://localhost:9999");
});
